﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Kratos.Framework.ContentManagement.Models.Order
{
    public class Product
    {
        [ScaffoldColumn(false)]
        public virtual int ProductId { get; set; }

        [DisplayName("产品名称")]
        [Required(ErrorMessage = "必须字段")]
        public virtual string ProductName { get; set; }

        [DisplayName("产品价格")]
        [Required(ErrorMessage = "必须字段")]
        [DataType(DataType.Currency)]
        public virtual decimal Price { get; set; }
    }
}
